package com.fangdd.logtrace.async;

import java.util.concurrent.Executor;

/**
 * Created by sulong on 16-9-7.
 */
public class TraceIdExecutor implements Executor {
    private Executor innerExecutor;

    public TraceIdExecutor(Executor executor) {
        this.innerExecutor = executor;
    }

    @Override
    public void execute(Runnable command) {
        innerExecutor.execute(new TraceRunnable(command));
    }
}
